// C Headers
#include <stdio.h>
#include <tchar.h>

// Win32 headers
#include <windows.h>

// SDL headers
#include "sdl/SDL.h"

// Project headers
#include "GamePlatformW32.h"
//#include "../Log.h"

#pragma comment(lib, "lib/SDL.lib")

#include "System\Graphics.h"



int wmain()
{
	GameWindowCreate();

	glClearColor (0.0, 0.0, 0.0, 0.0);
	glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); 

	TIME_DEBUG_START_FRAME();
    while(1)
	{
        GameWindowProcEvents();
		TIME_DEBUG_TIME_CHECK("ProcE");
		if(!GameWindowIsAlive())
		{
			break;
		}

		//SDL_GL_SwapBuffers();
		
		GameWindowPaint();
		
		
		
    }

	return 0;
}

